<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%int i=1;%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>行政区域列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">行政区域信息列表</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li><a class="button border-main icon-plus-square-o"
						href="<%=path%>/system/area/openAdd"> 添加行政区域</a></li>
					<li>搜索：</li>
					<li><input type="text" placeholder="请输入搜索关键字" name="keywords"
						class="input"
						style="width:250px; line-height:17px;display:inline-block" /> <a
						href="javascript:void(0)" class="button border-main icon-search"
						onclick="changesearch()"> 搜索</a></li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>	<th width="50">序号</th>
					<th width="50" style="text-align:center;">&nbsp;</th>
					<th>行政区域编号</th>
					<th>行政区域名称</th>
					<th>级别</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${list}" var="area">
				<tr>
				<td><%=i++ %></td>
					<td><input type="checkbox" name="ids"
						value="${area.areaCode}" /></td>
					<td align="center">${area.areaCode}</td>
					<td>${area.areaName}</td>
					<td>${area.grade}</td>
					<td><div class="button-group">
							<a class="button border-main"
								href="<%=path%>/system/area/openEdit?code=${area.areaCode}"><span
								class="icon-edit"></span> 修改</a> <a class="button border-red"
								href="<%=path%>/system/area/delete?code=${area.areaCode}"><span
								class="icon-trash-o"></span> 删除</a>
						</div></td>
				</tr>
				</c:forEach>
			</table>
			<div class="pagelist">
				<a
					href="<%=path%>/system/AreaServlet?m=list&pageNo=">上一页</a>
				<a href="javascript:void(0)">上一页</a>
				<span class="current"></span>
				<a href="<%=path%>/system/AreaServlet?m=list&pageNo="></a>
				<a
					href="<%=path%>/system/AreaServlet?m=list&pageNo="></a>
				<a href="javascript:void(0)">下一页</a>
				<a
					href="<%=path%>/system/AreaServlet?m=list&pageNo=">尾页</a>
			</div>
		</div>
	</form>

</body>
</html>
